/*
 * @Author: 码上talk|RC
 * @Date: 2021-08-17 11:03:36
 * @LastEditTime: 2022-04-15 18:58:41
 * @LastEditors: 码上talk|RC
 * @Description:
 * @FilePath: /ma-distributor/model/entity/purchanse/index.js
 * @微信:  13680065830
 * @邮箱:  3189482282@qq.com
 * @oops: Just do what I think it is right
 */
import Entity from '../../entity.class.js';
import options from '../../json/options/purchanse';

const _tableField = {
  sn: {
    type: 'string',
    default: ''
  },
  type: {
    type: 'int',
    default: 0
  },
  recipient: {
    type: 'string',
    default: ''
  },
  integralAchieveGive: {
    type: 'int',
    default: 0
  },
  amount: {
    type: 'int',
    default: 0
  },
  goodsItemsQuantity:{
    type: 'int',
    default: 0
  },
  goodsItemsQuantityNoStockOut:{
    type: 'int',
    default: 0
  },
  amountActual: {
    type: 'int',
    default: 0
  },
  status: {
    type: 'int',
    default: 0
  },
  sysExpress: {
    type: 'object',
    default: {}
  },
  createTime: {
    type: 'string',
    default: ''
  },
  isNewDistributor:{
    type: 'int',
    default: 0
  },
  paymentStartTime: {
    type: 'string',
    default: ''
  },
  pSn:{
    type: 'string',
    default: ''
  }
};

class Purchanse extends Entity {
  static _requestConfig = {
    app: 'portal',
    domain: 'purchanse'
  }

  static _form = {}

  static _options = options

  constructor (purchanse) {
    super(purchanse, { _tableField });
  }
}

export default Purchanse;